package v1

import (
	"clockIn/internal/model/entity"
	"clockIn/internal/model/input"
	"github.com/gogf/gf/v2/frame/g"
)

type GetListReq struct {
	g.Meta `path:"/item" tags:"打卡项目" method:"get" summary:"获取打卡项目列表"`
}

type GetListRes struct {
	List []*entity.Item `json:"list"   dc:"数据列表"`
}

type EditReq struct {
	g.Meta `path:"/item" tags:"打卡项目" method:"post" summary:"创建打卡项目"`
	input.ItemCreateModel
}

type EditRes struct{}

type DeleteReq struct {
	g.Meta `path:"/item/:id" tags:"打卡项目" method:"delete" summary:"删除打卡项目"`
	Id     int64 `json:"id" v:"required#ID不能为空" in:"path" description:"ID"`
}

type DeleteRes struct{}
